They mean long life. I remember you liked the calligraphy at the Palace Museum.
长命百岁。我记得上次去故宫,你特别喜欢书法。
In prosperity think of adversity.
居安思危。
This shows how long it was before we deemed it necessary to make sure that all our children could share in the knowledge accumulated by the'happy few' during the past centuries.